#include <QtTest>
#include <stdio.h>

#include "test_MediaModel.h"
#include "test_MediaSource.h"
#include "test_PlaylistAutomation.h"

int main(int argc, char *argv[])
{
   int failures = 0;

   test_MediaModel testMediaModel;
   failures += QTest::qExec( &testMediaModel, argc, argv);

   test_MediaSource testMediaSource;
   failures += QTest::qExec( &testMediaSource, argc, argv);

   test_PlaylistAutomation testPlaylistAutomation;
   failures += QTest::qExec( &testPlaylistAutomation, argc, argv);

   if (failures == 0)
   {
      printf("\n\nALL TESTS PASSED\n\n");
   }
   else
   {
      printf("\n\nTHERE WERE ERRORS\n\n");
   }

   return 0;
}
